﻿using KingerRobot.PCRBW.SpiService;
using System.Threading.Tasks;

namespace KingerRobot.PCRBW.Spi;

public interface IWarehousService
{
    /// <summary>
    /// 创建任务
    /// </summary>
    int CreateWarehouseingTask(long equip_id, string slidtable);
    /// <summary>
    /// 创建出库任务
    /// </summary>
    int CreateExWarehouseTask(long equip_id);

    /// <summary>
    /// 任务执行
    /// </summary>
    int ExecuteTask(long locId,int taskNo);
    /// <summary>
    /// 任务完成
    /// </summary>
    int FinishTask(int taskNo);

    /// <summary>
    /// 获取所有任务
    /// </summary>
    /// <param name="equipId"></param>
    /// <returns></returns>
    List<TaskCmdAndLocDto> GetTaskAndCmdBeanByCmdEquipId(long equipId);
    /// <summary>
    /// 获取基准和固定值设置
    /// </summary>
    /// <returns></returns>
    List<WmsSetting> QuerySetting();
}